package kz.edu.sdu.itech.pcs.mclient;

import java.util.Locale;

import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Logger;

public class Main {
   static Logger log = Logger.getLogger(Main.class);
   static Monitor client;

   public static void main(String[] args) {
      BasicConfigurator.configure();
      Locale.setDefault(Locale.US);
      try {
         client = new Monitor();
         Server s = new Server(client);
         s.getAlphabet().add("a-d");
         s.setLen(5);
         s.setHash(454);
         log.debug(s.getStatus());
         s.startWork();
         log.debug(s.getStatus());
         log.debug("CLOSING MClient");
         AppProps.DONE = true;
      } catch (Exception e) {
         log.error(e.toString());
      }
   }
}
